import PropTypes from 'prop-types'
import React, { memo } from 'react'
import { HomeLongforWrapper } from './style'
import SectionHeader from '@/components/section-header'
import PlaceList from './place-list'

const HomeLongfor = memo(({dataInfo}) => {
  return (
    <HomeLongforWrapper>
        <SectionHeader title={dataInfo.title} subtitle={dataInfo.subtitle}/>
        <PlaceList placeList={dataInfo.list} />
    </HomeLongforWrapper>
  )
})

HomeLongfor.propTypes = {
    dataInfo: PropTypes.object
}

export default HomeLongfor